package com.centaline.androidsalesblog.api.sale;

import com.centaline.androidsalesblog.api.SaleApi;
import com.centaline.androidsalesblog.model.responseobject.AutoMatchRo;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * 二手房自动匹配
 * Created by guilin on 16/2/22.
 */
public class AutoMatchApi extends SaleApi<AutoMatchRo> {

    private String key;
    private String type;

    public AutoMatchApi(Class<?> tag, Class<AutoMatchRo> aClass, IResponseListener<AutoMatchRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }

    public void setKey(String key) {
        this.key = key;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    protected void setParams() {
        putParams("key", key);
        putParams("type", type);
    }

    @Override
    protected String getPath() {
        return "AutoMatch";
    }
}
